<template>
  <div class="item" @click='skipDetail'>
    <img :src="$img.imgServe + goods.img" alt="">
    <div class="info" v-text="goods.desc">
      [京东]棉服女短款冬季2020年新款韩版棉袄时尚
    </div>
    <div class="footer">
      <span>
        <i>￥</i>
        <i v-text="goods.price">698.00</i>
      </span>
      <span>看相似</span>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {
    }
  },

  props: {
    goods: { type: Object, require: false }
  },

  methods: {
    skipDetail () {
      this.$router.push('/goods/detail/' + this.goods._id)
    }
  }
}
</script>

<style lang="scss" scoped>
  // 345 520
  .item {
    width: 4.6rem;
    height: 6.866667rem;
    border-radius: .266667rem;
    background-color: #fff;
    margin: .266667rem 0;
    overflow: hidden;
    img {
      display: block;
      width: 4.6rem;
      height: 4.666667rem;
    }
    .info {
      width: 4.6rem;
      height: .8rem;
      font-size: .32rem;
      color: #333;
      overflow: hidden;
    }
    .footer {
      margin-top: .133333rem;
      span {
        font-size: .32rem;
        color: #333;
      }
      span:nth-of-type(1) {
        float: left;
        color: rgb(245, 43, 43);
        i:nth-of-type(2) {
          font-size: .4rem;
        }
      }
      span:nth-of-type(2) {
        float: right;
      }
    }
    
  }
</style>